package com.mayisoftware.mayioa.business.worktime.impl.serviceImpl;


import com.mayisoftware.mayioa.business.worktime.api.domain.TMWorktimeDetailFlow;
import com.mayisoftware.mayioa.business.worktime.api.domain.WrokTimeImportInfo;
import com.mayisoftware.mayioa.business.worktime.api.domain.board.TMBoardResult;
import com.mayisoftware.mayioa.business.worktime.api.domain.board.TMStatisticInfo;
import com.mayisoftware.mayioa.business.worktime.api.service.IWorkTimeBoardService;
import com.mayisoftware.mayioa.business.worktime.api.service.IWorkTimeService;
import com.mayisoftware.mayioa.business.worktime.impl.dao.TmWorktimeBoardMapper;
import com.mayisoftware.mayioa.business.worktime.impl.dao.TmWorktimeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class WorktimeBoardImpl implements IWorkTimeBoardService {

    @Autowired
    private TmWorktimeBoardMapper boardMapper;

    @Override
    public TMBoardResult queryBoardInfos(WrokTimeImportInfo record) {
        TMBoardResult result = new TMBoardResult();
//        List<TMStatisticInfo> greaters  = boardMapper.getExtraGreater8Hours(record);
        List<TMStatisticInfo> less  = boardMapper.getExtraLess8Hours(record);
//        result.setGreater8Hours(greaters);
        result.setLess8Hours(less);
        return result;
    }
}
